const { defineConfig } = require('@vue/cli-service')
const NodePolyfillPlugin = require("node-polyfill-webpack-plugin");
module.exports = defineConfig({
    transpileDependencies: true,
    publicPath:'./',
    chainWebpack: config =>{
    config.plugin('html')
        .tap(args => {
          args[0].title = "辰旭缘";
          return args;
        })
    },
    configureWebpack: {
        resolve: {
            fallback: {
                fs: false,
                crypto: require.resolve("crypto-browserify"),
                stream: require.resolve("stream-browserify"),
            },
        },
        plugins: [new NodePolyfillPlugin()],
    }
})

